# -*- coding: utf-8 -*-
"""
Created on Mon May 11 03:22:52 2020

@author: Farman
"""

import joblib
import pathlib
import LandsatFileNameParser as parser


work_dir = pathlib.Path('.')
file_name = 'LandsatDataFiles.list'

#------------------------------------------------------------------------------

with open(work_dir / file_name) as f:
    files = f.readlines()

files = [file.rstrip() for file in files]


print(len(files))
input()
#------------------------------------------------------------------------------

day_of_year = [0 for n in range(366)]

for file in files:
    day_of_year[parser.parse_day_of_year(file)] += 1


print(day_of_year)
#joblib.dump(dict_path_row_year, 'LandsatFileDictInPathRowYear.joblib')